package com.martini.satoken01.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 评论
 * Mongo DB entity
 *
 * @author martini at 2021/12/15 15:10
 */
@Data
@Document
@Accessors(chain = true)
public class Comment {

    @Id
    private String id;

    private String nickname;

    private String username;

    private String content;

}
